//package com.yc.projects.pro3_Quartz;
//
//import org.quartz.JobBuilder;
//import org.quartz.JobDetail;
//import org.quartz.SimpleScheduleBuilder;
//import org.quartz.Trigger;
//import org.quartz.TriggerBuilder;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class QuartzConfig {
//
//    @Bean
//    public JobDetail helloWorldJobDetail() {
//        return JobBuilder.newJob(HelloWorldJob.class)
//                .withIdentity("helloWorldJob")
//                .storeDurably()
//                .build();
//    }
//
//    @Bean
//    public Trigger helloWorldJobTrigger() {
//        return TriggerBuilder.newTrigger()
//                .forJob(helloWorldJobDetail())
//                .withIdentity("helloWorldTrigger")
//                .withSchedule(SimpleScheduleBuilder.simpleSchedule()
//                        .withIntervalInSeconds(5)
//                        .repeatForever())
//                .build();
//    }
//}
